﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09练习
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("输入一个待计算的天数");
            //int day = Console.Read();
            //int week = day / 7;
            //int a = day % 7;
            //Console.WriteLine("{0}天是{1}周零{2}天",day,week,a);
            //Console.ReadKey();

            //int n=107653;
            //int d = n / 86400;
            //int h = (n - d * 86400) / 3600;
            //int m = (n-d*86400- h * 3600) / 60;
            //int s = n - m * 60 - d * 86400 - h * 3600;
            //Console.WriteLine("107653秒是{0}天{1}小时{2}分钟{3}秒！",d,h,m,s);
            //Console.ReadKey();

            //Console.WriteLine("请输入随机的时，分，秒");
            //int hour = Console.Read();
            //Console.ReadKey();
            //int minute = Console.Read();
            //Console.ReadKey();
            //int seconds = Console.Read();
            //Console.ReadKey();
            //Console.WriteLine("{0}时{1}分{2}秒",hour,minute,seconds);
            //Console.ReadKey();
            int seconds = 107653;
            int day = seconds / 86400;
            int sex = seconds % 86400;
            int hour = sex / 3600;
            sex = sex % 3600;
            int minute = sex / 60;
            sex = sex % 60;
            Console.WriteLine("{0}秒是{1}天{2}小时{3}分钟{4}秒",seconds,day,hour,minute,sex);
            Console.ReadKey();




        }
    }
}
